// 该文件定义首页模块的 ts数据类型

// 接口得到的数据类型
export interface ResponseData {
  code: number,
  message: string,
  ok:boolean
}
// 已有医院数据 的 ts类型
export interface Hospital {
  "id":string,
  "creatTime":string,
  "updateTime": string,
  "isDeleted":number,
  "param": {
		"hostypeString": string,
		"fullAddress": string
	},
	"hoscode": string,
	"hosname": string,
  // 医院等级
	"hostype": string,
	"provinceCode":string,
	"cityCode": string,
	"districtCode": string,
	"address": string,
	"logoData": string,
	"intro": string,
	"route": string,
	"status": number,
	"bookingRule": {
		"cycle": number,
		"releaseTime": string,
		"stopTime": string,
		"quitDay": number,
		"quitTime": string,
		"rule": string[]
	}
}
// 存储 已有医院的数据类型
export type Content = Hospital[]
// 获取已有医院数据接口 响应返回数据的 ts类型
export interface HospitalResponseData extends ResponseData {
  data: {
    content:Content,
    "pageable": {
      "sort": {
        "sorted": boolean,
        "unsorted": boolean,
        "empty": boolean
      },
      "pageNumber": number,
      "pageSize": number,
      "offset": number,
      "paged": boolean,
      "unpaged": boolean
    },
    "totalPages": number,
    "totalElements": number,
    "last": boolean,
    "first": boolean,
    "sort": {
      "sorted": boolean,
      "unsorted": boolean,
      "empty": boolean
    },
    "numberOfElements": number,
    "size": number,
    "number": number,
    "empty": boolean
  }
}
// 医院等级或地区数据的 ts类型
export interface HospitalLevelAndRegion {
      "id": number,
      "createTime": string,
      "updateTime": string,
      "isDeleted": number,
      "param": object,
      "parentId": number,
      "name": string,
      "value": string,
      "dictCode": string,
      "hasChildren": boolean
}
// 存储 医院等级或地区数据的 数据类型
export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]
// 获取 等级或地区接口 响应返回的数据 的 ts类型
export interface  HospitalLevelAndRegionResponseData extends ResponseData {
  data: HospitalLevelAndRegionArr
}

// 根据关键字获取医院名称数据 的 ts类型
export interface HospitalInfoResponseData extends ResponseData {
  data:Content
}